home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995 AROS - The Amiga Replacement OS
- $Id: remove.c 1.1 1995/11/05 22:49:09 digulla Exp digulla $
- $Log: remove.c $
- * Revision 1.1 1995/11/05 22:49:09 digulla
- * Initial revision
- *
- Desc:
- Lang: english
- */
- #include "exec_intern.h"
-
- /*****************************************************************************
-
- NAME */
- #include <exec/lists.h>
- #include <clib/exec_protos.h>
-
- __AROS_LH1I(void, Remove,
-
- /* SYNOPSIS */
- __AROS_LA(struct Node *, node, A1),
-
- /* LOCATION */
- struct SysBase *, SysBase, 42, Exec)
-
- /* FUNCTION
- Remove a node from a list.
-
- INPUTS
- node - This node to be removed.
-
- RESULT
-
- NOTES
- There is no need to specify the list but the node must be in
- a list !
-
- EXAMPLE
- struct Node * node;
-
- // Remove node
- Remove (node);
-
- BUGS
-
- SEE ALSO
-
- INTERNALS
-
- HISTORY
- 26-08-95 digulla created after EXEC-Routine
- 26-10-95 digulla adjusted to new calling scheme
-
- ******************************************************************************/
- {
- assert (node);
- /*
- Unfortunately, there is no (quick) check that the node
- is in a list.
- */
-
- /*
- Just bend the pointers around the node, ie. we make our
- predecessor point to out successor and vice versa
- */
- node->ln_Pred->ln_Succ = node->ln_Succ;
- node->ln_Succ->ln_Pred = node->ln_Pred;
- } /* Remove */
-
-